#!/bin/sh

dd if=/dev/zero of=boot.img~ count=10000 2>/dev/null
dd if=boot/boot_sect.bin of=boot.img~ bs=512 conv=notrunc 2>/dev/null
dd if=boot/s1.bin of=boot.img~ bs=512 seek=1 conv=notrunc count=`cat boot/s1_size` 2>/dev/null
dd if=kernel/kernel of=boot.img~ bs=512 seek=$(( `cat boot/s1_size` + 1 )) conv=notrunc 2>/dev/null
mv boot.img~ boot.img
